Promptoid allows to display a prompt dialog during any lengthy process. Dialog's width is set according to prompt string.
Caution
This XCMD is the same as Prompt. Promptoid is for HC 2.0, while Prompt is for HC 1.2.
If you already use Prompt in stacks to be converted in HC 2.0 format, just use the compatibility script below so that no script changes will be necessary while the calling convention has changed.
Compatibility script has changed with Promptoid 1.2.
SYNTAX
Promptoid [<message>[<ICON name or id>[,<VLoc>[,<width>]]]
PARAMETERS
All parameteres are optional.
<message> is the string to be displayed.
<ICON name or id> is the name or ID of any ICON resource to be displayed in the dialog.
<VLoc> is an integer giving the vertical position of the dialog according to the card window. Default is centered.
<width> is an integer giving teh width of the dialog.
Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output).
USING
If <message> param is omitted, default dialog's width will be 300 pixels.
If <VLoc> param is omitted, the dialog will be centered on the card.
PROPERTIES
Like any XWindow, Promptoid has properties that can be get and set thru HyperTalk.
properties of window "Promptoid"
will return an item list of all allowed properties :
• icon : id and name of displayed ICON resource, empty if none
• loc : dialog's loc according to card window
• visible : dialog's display state
• text : prompt shown in the dialog
• vLoc : dialog's vertical loc according to card window
• width : dialog's width
ERRORS
If an error occurs, Promptoid can return :
"Error : Promptoid already displayed"
"Error : Bad coordinate"
"Error : Bad width"
"Error : Unable to create XWindow"
"Error : XWindows not implemented"
HISTORY
1.5 08/11/92
• Dialog centered on screen if HC window not visible
Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: